package com.ltu.domain.mp_entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.ltu.domain.BaseEntity;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单
 * </p>
 * 
 * @author 若尘
 * @since 2024-03-16
 */
@Accessors(chain = true)
@TableName("sys_order")
@ApiModel(value = "OrderEntity对象", description = "订单")
public class OrderEntity extends BaseEntity {

	private static final long serialVersionUID = 1L;



	@ApiModelProperty(value = " order_no:订单编号 ")
	private String orderNo;
	@ApiModelProperty(value = " source_desc:来源：1自提单2充值 ")
	private String sourceDesc;
	@ApiModelProperty(value = " source_dict:来源：1自提下单2充值 ")
	private Byte sourceDict;
	@ApiModelProperty(value = " source_id:来源记录ID，非下单和充值产生的订单 ")
	private Integer sourceId;
	@ApiModelProperty(value = " source_ids:来源记录的ID ")
	private String sourceIds;
	@ApiModelProperty(value = " remark:备注 ")
	private String remark;
	@ApiModelProperty(value = " user_id:创建人ID ")
	private Integer userId;
	@ApiModelProperty(value = " user_name:创建人姓名 ")
	private String userName;
	@ApiModelProperty(value = " user_phone:联系电话 ")
	private String userPhone;
	@ApiModelProperty(value = " contact_person:联系人 ")
	private String contactPerson;
	@ApiModelProperty(value = " contact_phone:联系电话 ")
	private String contactPhone;
	@ApiModelProperty(value = " total_fee:订单总额 ")
	private Integer totalFee;
	@ApiModelProperty(value = " rebate_fee:优惠额度 ")
	private Integer rebateFee;
	@ApiModelProperty(value = " payable_fee:实际支付 ")
	private Integer payableFee;
	@ApiModelProperty(value = " pay_status:支付状态：0待支付1支付成功2支付中-2取消支付-1未完成支付 ")
	private Byte payStatus;
	@ApiModelProperty(value = " status:是否有效0否1是默认0，-2已退款 ")
	private Integer status;
	@ApiModelProperty(value = " pay_way:支付方式1微信支付2余额支付 ")
	private Byte payWay;
	@ApiModelProperty(value = " update_time:更新时间 ")
	private Date updateTime;
	@ApiModelProperty(value = " create_time:创建时间 ")
	private Date createTime;
	@ApiModelProperty(value = " amount:商品总数 ")
	private Integer amount;
	@ApiModelProperty(value = " order_item_ids:订单详情IDS,分割 ")
	private String orderItemIds;
	private String openid;
	private Integer payRecordId;

	
	@ApiModelProperty(value = "规格名称拼接，如 尺码：41,颜色:红色")
	@TableField(exist = false)
	private String unitName;
	@ApiModelProperty(value = "根据商品名称模糊查询")
	@TableField(exist = false)
	private String productName;
	



	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public Integer getPayRecordId() {
		return payRecordId;
	}

	public void setPayRecordId(Integer payRecordId) {
		this.payRecordId = payRecordId;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getUnitName() {
		return unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	



	/**
	 * 订单编号
	 */
	public String getOrderNo() {
		return orderNo;
	}

	/**
	 * 订单编号
	 */
	public OrderEntity setOrderNo(String orderNo) {
		this.orderNo = orderNo;
		return this;
	}

	/**
	 * 来源：1自提单2充值
	 */
	public String getSourceDesc() {
		return sourceDesc;
	}

	/**
	 * 来源：1自提单2充值
	 */
	public OrderEntity setSourceDesc(String sourceDesc) {
		this.sourceDesc = sourceDesc;
		return this;
	}

	/**
	 * 来源：1自提下单2充值
	 */
	public Byte getSourceDict() {
		return sourceDict;
	}

	/**
	 * 来源：1自提下单2充值
	 */
	public OrderEntity setSourceDict(Byte sourceDict) {
		this.sourceDict = sourceDict;
		return this;
	}

	/**
	 * 来源记录ID，非下单和充值产生的订单
	 */
	public Integer getSourceId() {
		return sourceId;
	}

	/**
	 * 来源记录ID，非下单和充值产生的订单
	 */
	public OrderEntity setSourceId(Integer sourceId) {
		this.sourceId = sourceId;
		return this;
	}


	/**
	 * 来源记录的ID
	 */
	public String getSourceIds() {
		return sourceIds;
	}

	/**
	 * 来源记录的ID
	 */
	public OrderEntity setSourceIds(String sourceIds) {
		this.sourceIds = sourceIds;
		return this;
	}

	/**
	 * 备注
	 */
	public String getRemark() {
		return remark;
	}

	/**
	 * 备注
	 */
	public OrderEntity setRemark(String remark) {
		this.remark = remark;
		return this;
	}

	/**
	 * 创建人ID
	 */
	public Integer getUserId() {
		return userId;
	}

	/**
	 * 创建人ID
	 */
	public OrderEntity setUserId(Integer userId) {
		this.userId = userId;
		return this;
	}

	/**
	 * 创建人姓名
	 */
	public String getUserName() {
		return userName;
	}

	/**
	 * 创建人姓名
	 */
	public OrderEntity setUserName(String userName) {
		this.userName = userName;
		return this;
	}

	/**
	 * 联系电话
	 */
	public String getUserPhone() {
		return userPhone;
	}

	/**
	 * 联系电话
	 */
	public OrderEntity setUserPhone(String userPhone) {
		this.userPhone = userPhone;
		return this;
	}

	/**
	 * 联系人
	 */
	public String getContactPerson() {
		return contactPerson;
	}

	/**
	 * 联系人
	 */
	public OrderEntity setContactPerson(String contactPerson) {
		this.contactPerson = contactPerson;
		return this;
	}

	/**
	 * 联系电话
	 */
	public String getContactPhone() {
		return contactPhone;
	}

	/**
	 * 联系电话
	 */
	public OrderEntity setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
		return this;
	}


	/**
	 * 订单总额
	 */
	public Integer getTotalFee() {
		return totalFee;
	}

	/**
	 * 订单总额
	 */
	public OrderEntity setTotalFee(Integer totalFee) {
		this.totalFee = totalFee;
		return this;
	}

	/**
	 * 优惠额度
	 */
	public Integer getRebateFee() {
		return rebateFee;
	}

	/**
	 * 优惠额度
	 */
	public OrderEntity setRebateFee(Integer rebateFee) {
		this.rebateFee = rebateFee;
		return this;
	}

	/**
	 * 实际支付
	 */
	public Integer getPayableFee() {
		return payableFee;
	}

	/**
	 * 实际支付
	 */
	public OrderEntity setPayableFee(Integer payableFee) {
		this.payableFee = payableFee;
		return this;
	}

	/**
	 * 支付状态：0待支付1支付成功2支付中-2取消支付-1未完成支付
	 */
	public Byte getPayStatus() {
		return payStatus;
	}

	/**
	 * 支付状态：0待支付1支付成功2支付中-2取消支付-1未完成支付
	 */
	public OrderEntity setPayStatus(Byte payStatus) {
		this.payStatus = payStatus;
		return this;
	}

	/**
	 * 是否有效0否1是默认0
	 */
	public Integer getStatus() {
		return status;
	}

	/**
	 * 是否有效0否1是默认0
	 */
	public OrderEntity setStatus(Integer status) {
		this.status = status;
		return this;
	}

	/**
	 * 支付方式1微信支付2余额支付
	 */
	public Byte getPayWay() {
		return payWay;
	}

	/**
	 * 支付方式1微信支付2余额支付
	 */
	public OrderEntity setPayWay(Byte payWay) {
		this.payWay = payWay;
		return this;
	}

	/**
	 * 更新时间
	 */
	public Date getUpdateTime() {
		return updateTime;
	}

	/**
	 * 更新时间
	 */
	public OrderEntity setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	/**
	 * 创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * 创建时间
	 */
	public OrderEntity setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}

	/**
	 * 商品总数
	 */
	public Integer getAmount() {
		return amount;
	}

	/**
	 * 商品总数
	 */
	public OrderEntity setAmount(Integer amount) {
		this.amount = amount;
		return this;
	}

	/**
	 * 订单详情IDS,分割
	 */
	public String getOrderItemIds() {
		return orderItemIds;
	}

	/**
	 * 订单详情IDS,分割
	 */
	public OrderEntity setOrderItemIds(String orderItemIds) {
		this.orderItemIds = orderItemIds;
		return this;
	}

}
